/*
 * @Author: your name
 * @Date: 2021-04-25 15:09:20
 * @LastEditTime: 2021-07-19 14:20:44
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \dolphin-data-center-front-end\src\services\os.js
 */
import {
  get_OSS_config,
  testPostDownload,
  exportRemittanceDetailsApiPath,
} from './api'
import { METHOD, request } from '@/utils/request'

export async function getOSSConfig(params) {
  return request(get_OSS_config, METHOD.GET, params)
}

export async function testPostDownloads(params) {
  return request(testPostDownload, METHOD.GET, params, {
    responseType: 'blob',
  })
}

export async function exportRemittanceDetailsApi(params) {
  return request(exportRemittanceDetailsApiPath, METHOD.GET, params, {
    responseType: 'blob',
  })
}

export default {
  getOSSConfig,
  exportRemittanceDetailsApi,
}
